
import { _decorator, Component, Node, Color, Sprite } from 'cc';
const { ccclass, property } = _decorator;

 
@ccclass('clickBoard')
export class clickBoard extends Component {
    @property(Node)
    public SpriteSplash: Node = null;

    public sprite:Sprite;
    onLoad(){
        this.sprite = this.SpriteSplash.getComponent(Sprite);
    }
    show(is: boolean){
        if (is) {
            this.sprite.color = new Color(31, 87, 131, 119);
        } else {
            this.sprite.color = new Color(31, 87, 131, 0);
        }
        
    }
}
